* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #a0a0a0;
}

.levels {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.level {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.level h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.level-content {
    padding: 15px;
    background-color: #252525;
    border-radius: 8px;
    min-height: 100px;
}

#waveform {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3e8e41;
}

.babble-text {
    font-family: monospace;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    text-align: center;
    padding: 20px;
    letter-spacing: 1px;
    word-spacing: 2px;
    user-select: all;
}

.encoded-text {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 5px;
    overflow-wrap: break-word;
    user-select: all;
}

.code-entry {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 30px;
}

.code-entry h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.code-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.digit {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #4CAF50;
    background-color: #252525;
    color: white;
    border-radius: 5px;
}

.hidden {
    display: none;
}

#result {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-animation {
    margin: 20px auto;
    width: 100px;
    height: 100px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 6;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0 0 0 #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 50px rgba(76, 175, 80, 0.1);
    }
}

